home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5875 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: newsbf02.news.aol.com!not-for-mail
  2. From: mlin01@aol.com (MLin01)
  3. Newsgroups: comp.lang.c++
  4. Subject: Simulation Problem, Help!!!
  5. Date: 7 Feb 1996 01:58:34 -0500
  6. Organization: America Online, Inc. (1-800-827-6364)
  7. Sender: root@newsbf02.news.aol.com
  8. Message-ID: <4f9iiq$5nl@newsbf02.news.aol.com>
  9. Reply-To: mlin01@aol.com (MLin01)
  10.  
  11. Hi, All:
  12.  
  13. I need to write a program to do some bond trading simulations.  This
  14. program works like this:
  15.  
  16. 1. It asks the user about the interest rate constrains.
  17. (e.g., if rate < 8%, buy $1000.
  18.        if 8 <= rate < 12%, buy $2000
  19.        if rate >= 12%, buy $3000
  20. )
  21.  
  22. 2. Based on the constrains and the actual interest rate, the program will
  23. come up with the gain
  24. or lost.
  25.  
  26. The chanllenges are:
  27. 1. I need to validate user inputs.  This implies the inputs will have the
  28. correct syntax and semantic for the specific language.
  29. 2. All constrains have to be exclusive and the union of all the constrains
  30. is a universe.
  31. 3. Translate all the constrains as part of the calculation function at run
  32. time.
  33.  
  34. If you have similiar experience, please let me know at mlin01@aol.com.
  35.  
  36. Many thanks in advance.
  37.  
  38. Michael
  39.